package com.hjb.toolbardemo.fragment;

import android.content.Intent;
import android.util.Log;
import android.view.View;

import com.app_library.utils.LogC;
import com.hjb.toolbardemo.R;
import com.hjb.toolbardemo.base.AppBaseFragment;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 作者 : hjb
 * 时间 : 2016/4/25.
 */
public class TwoFragment extends AppBaseFragment {
    @Override
    public View initRootView() {
        rootView = mInflater.inflate(R.layout.frag_two, null);
        ButterKnife.inject(this, rootView);
        return rootView;
    }

    @Override
    public void setViews() {
        setTitleTv("two");
        setNextTv("dianwo");
        setNextOnClick(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
            }
        });
    }

    @Override
    public void initData() {

    }

    @OnClick(R.id.button1)
    public void onClick() {
        Log.i("===", "===");
        Intent intent = getActivity().getIntent();
        intent.putExtra("str", "woosjd");
        getActivity().setResult(121, intent);
        getActivity().finish();
    }
}
